package com.tc.data.common.holder;

import com.tc.data.common.util.CleanType;

/**
 * 分库策略信息
 */
public class ShardingStrategy {
	private String repositoryShardingKey;
	private String dataSourceKey;
	private CleanType cleanType = CleanType.NONE;
	private boolean transaction = false;

	public void setRepositoryShardingKey(String repositoryShardingKey) {
		this.repositoryShardingKey = repositoryShardingKey;
	}

	public String getRepositoryShardingKey() {
		return this.repositoryShardingKey;
	}

	public void setDataSourceKey(String dataSourceKey) {
		this.dataSourceKey = dataSourceKey;
	}

	public String getDataSourceKey() {
		return this.dataSourceKey;
	}
	
	public void setCleanType(CleanType cleanType) {
		this.cleanType = cleanType;
	}
	
	public CleanType getCleanType() {
		return this.cleanType;
	}
	
	public boolean getTransaction() {
		return this.transaction;
	}
	
	public void setTransaction(boolean transaction) {
		this.transaction = transaction;
	}
}
